Skip to content

Instantly share code, notes, and snippets.

@hatarist
hatarist / pg_get_table_sizes.sql
Created September 8, 2017 15:48
PostgreSQL: get table size (data & index & toast)
SELECT
*,
pg_size_pretty(table_bytes) AS table,
pg_size_pretty(index_bytes) AS index,
pg_size_pretty(total_bytes) AS total
FROM (
SELECT
*, total_bytes - index_bytes - COALESCE(toast_bytes, 0) AS table_bytes
FROM (
SELECT
@8ullyMaguire
8ullyMaguire / Calibre_and_FanFicFare.md
Last active January 19, 2026 11:54
Setting up Calibre and FanFicFare
@minimaxir
minimaxir / CLAUDE.md
Created January 2, 2026 01:57
Rust CLAUDE.md (20260101)

Agent Guidelines for Rust Code Quality

This document provides guidelines for maintaining high-quality Rust code. These rules MUST be followed by all AI coding agents and contributors.

Your Core Principles

All code you write MUST be fully optimized.

"Fully optimized" includes:

@TheGreatSageEqualToHeaven
TheGreatSageEqualToHeaven / READ.md
Last active January 19, 2026 11:49
Data store vulnerabilities

Write-up

A warning to Roblox developers about a powerful exploit primitive. In this, I will detail the research I’ve conducted into this attack vector and walk you through how you as a developer, can protect against exploits with primitives like this.

DataStoreService lets you store data that needs to persist between sessions, such as items in a player’s inventory or skill points. Data stores are consistent per experience, so any place in an experience can access and change the same data, including places on different servers.

By default, experiences tested in Studio cannot access data stores, so you must first enable API services. You will need to do this to test the vulnerabilities.

The idea I wanted to explore when pondering the above question was; can we exploit remotes to prevent data from saving? It is easy to blame the developer for not protecting themselves against such a simple exploit but it ends up being more complicated than that. I found plenty of examples of these vulnerabilities occurring

@MjHead
MjHead / options-values-in-code.php
Last active January 19, 2026 11:41
Get option values for JetEngine options pages inside the PHP code
<?php
/**
* Method 1
* Can be used for: Any storage type
*
* page-slug - replace this with your Option Page slug
* option-name - replace this with your option Name/ID
*/
$value = jet_engine()->listings->data->get_option( 'page-slug::option-name' );
@CondensedMilk7
CondensedMilk7 / picom.conf
Created March 18, 2022 08:22
picom round corners config
#################################
# Corners #
#################################
# requires: https://github.com/sdhand/compton
corner-radius = 10.0;
rounded-corners-exclude = [
#"window_type = 'normal'",
"class_g = 'Polybar'",
];
round-borders = 10;
@FFKIPASAPK2026
FFKIPASAPK2026 / freefire.md
Created December 30, 2025 03:28
FF KIPAS APK v18.6 (Free Fire Terbaru 2026) Unduh OB51 gratis Android

FF KIPAS APK v18.6 (Free Fire Terbaru 2026) Unduh OB51 gratis Android

FF-KIPAS-gratis

FF KIPAS APK merupakan aplikasi yang banyak digunakan oleh pemain Free Fire untuk meningkatkan pengalaman bermain. Aplikasi ini dirancang dengan berbagai fitur pendukung yang membantu pengguna mendapatkan kontrol permainan yang lebih baik, tampilan yang lebih optimal, serta performa yang lebih stabil. Dalam artikel ini, pembahasan hanya difokuskan pada fitur-fitur unggulan FF KIPAS APK dan pertanyaan yang paling sering diajukan oleh pengguna, tanpa membahas aspek lain di luar itu.

Fitur Unggulan FF KIPAS APK

Optimalisasi Performa Game Free Fire

Salah satu fitur utama FF KIPAS APK adalah kemampuannya dalam mengoptimalkan performa game Free Fire. Aplikasi ini membantu mengurangi lag, meningkatkan stabilitas frame rate, dan membuat permainan berjalan lebih lancar. Den

@Bl4ckSh4rk
Bl4ckSh4rk / badwords_3ds.txt
Last active January 19, 2026 11:26
3DS / NSW Banned Word List
.*(ca|k|ka)ralh(inh|o|ã|õ).*
.*[gj]ilip.*
.*[늬니]미.*
.*[뒈디]져.*
.*[백빽]보지.*
.*[붕븅빙]신.*
.*[뻑뽀]큐.*
.*[시씨]벨넘.*
.*[좃좆]까.*
.*[크클]리토리스.*

Proxmox VE tips

Just some tips I gathered over time. All in one easily reachable place so I can share it wherever I want.

Please note that unless you see a shebang (#!/...) these code blocks are usually meant to be copy & pasted directly into the shell. Some of the steps will not work if you run part of them in a script and copy paste other ones as they rely on variables set before.
The { and } surrounding some scripts are meant to avoid poisoning your bash history with individual commands, etc. You can ignore them if you manually copy paste the individual commands.
I chose to write things "in the open" that way so there's still some control and things don't become a black box.

Table of contents